package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 前端页面跳转控制(templates)
 */
@Controller
public class RedirectController {

    @GetMapping("/{url}")
    public String redirect(@PathVariable String url) {
        return url;
    }

    //暂时处理favicon报错
    @GetMapping("favicon.ico")
    @ResponseBody
    void returnNoFavicon(){

    }
}
